<template>
  <div>
    <el-button type="primary" @click="change">添加</el-button>
    <el-table :data="tableData" border style="width: 100%">
      <el-table-column prop="date" label="角色编号" width="80"></el-table-column>
      <el-table-column prop="name" label="角色名称"></el-table-column>
      <el-table-column prop="address" label="状态"></el-table-column>
      <el-table-column label="操作">
      <el-button type="primary" @click="change">编辑</el-button>
        <el-button type="danger">删除</el-button>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
import { mapGetters, mapActions } from "vuex";
export default {
  components: {},
  computed: {
    ...mapGetters({}),
  },
  methods: {
    ...mapActions({ }),
     change(){
        this.$emit("aa")
      }
  },
  mounted() {},
  props: [],
  data() {
    return {
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
        }
      ],
    };
  },
};
</script>
<style lang="less" scoped>
</style>